package com.ktgj.common.core.utils.xml;

public class XNamespace
{
	public static final XNamespace XML_NAMESPACE = new XNamespace("xml", "http://www.w3.org/XML/1998/namespace");

	public static final XNamespace NO_NAMESPACE = new XNamespace("", "");

	private String prefix;
	private String uri;

	public String getPrefix()
	{
		return prefix;
	}

	public void setPrefix(String prefix)
	{
		this.prefix = prefix;
	}

	public String getUri()
	{
		return uri;
	}

	public void setUri(String uri)
	{
		this.uri = uri;
	}

	public XNamespace()
	{
	}

	public XNamespace(String prefix, String uri)
	{
		this.prefix = prefix;
		this.uri = uri;
	}

	public boolean isEmpty()
	{
		return this.prefix.equals(NO_NAMESPACE.prefix) && this.prefix.equals(NO_NAMESPACE.uri);
	}
}
